/* 引入Normalize.css重置样式 */
@import url('https://cdn.jsdelivr.net/npm/normalize.css@8.0.1/normalize.css');
/* style.css - 九江学院信息公开网样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #008000; /* 改为绿色系 */
    transition: color 0.3s;
}

a:hover {
    color: #006400; /* 深绿色 */
}

ul {
    list-style: none;
}

/* 页面顶部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #eaeaea;
}

.header-top h1 {
    margin: 0;
}

.header-top img {
    vertical-align: middle;
}

.top-links {
    font-size: 14px;
}

.top-links a {
    margin: 0 5px;
}

.search-box {
    display: flex;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 200px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 15px;
    background-color: #008000; /* 改为绿色 */
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background-color: #006400; /* 深绿色 */
}

/* 主导航栏样式 - 改为绿色主题 */
nav {
    background-color: #008000; /* 改为绿色 */
}

.main-nav {
    display: flex;
    justify-content: center;
    position: relative;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.main-nav > li > a:hover {
    background-color: #006400; /* 深绿色 */
}

/* 下拉菜单样式 */
.has-submenu:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

.submenu li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background-color: #f5f5f5;
    color: #008000; /* 改为绿色 */
}

/* 主体内容区域 */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 轮播图区域 */
.banner {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider ul {
    display: flex;
    animation: slide 15s infinite;
}

.slider li {
    flex-shrink: 0;
    width: 100%;
}

.slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@keyframes slide {
    0%, 25% { transform: translateX(0); }
    33%, 58% { transform: translateX(-100%); }
    66%, 91% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}

/* 主要内容区域布局 */
.content-wrapper {
    display: flex;
    gap: 30px;
}

.news-section {
    flex: 2;
}

.sidebar {
    flex: 1;
}

/* 学校要闻图片轮播区域 */
.news-images {
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.news-slider .slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.news-slider .slide.active {
    opacity: 1;
}

.news-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-slider .slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 15px;
    font-size: 14px;
}

.news-slider .slider-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.news-slider .prev-btn,
.news-slider .next-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: all 0.3s;
}

.news-slider .prev-btn:hover,
.news-slider .next-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.news-slider .dots {
    display: flex;
    gap: 8px;
}

.news-slider .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.news-slider .dot.active {
    background: white;
    transform: scale(1.2);
}

.news-slider .dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 学校要闻列表 */
.news-list {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-list header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #008000; /* 改为绿色 */
    background: none;
    box-shadow: none;
}

.news-list h2 {
    color: #008000; /* 改为绿色 */
    font-size: 22px;
}

.more-link {
    font-size: 14px;
}

.news-list ul li {
    padding: 12px 0;
    border-bottom: 1px dashed #eaeaea;
    display: flex;
    justify-content: space-between;
}

.news-list ul li:last-child {
    border-bottom: none;
}

.news-list ul li a {
    flex: 1;
    margin-right: 15px;
    color: #333;
    font-size: 15px;
}

.news-list ul li a:hover {
    color: #008000; /* 改为绿色 */
}

.news-list time {
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}

/* 侧边栏通用样式 */
.sidebar section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #008000; /* 改为绿色 */
    background: none;
    box-shadow: none;
}

.sidebar h2 {
    color: #008000; /* 改为绿色 */
    font-size: 18px;
}

/* 信息公开受理及监督 */
.contact-content h3 {
    color: #008000; /* 改为绿色 */
    margin: 15px 0 10px;
    font-size: 16px;
}

.contact-content p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 最新公开信息 */
.latest-info ul li {
    padding: 12px 0;
    border-bottom: 1px dashed #eaeaea;
}

.latest-info ul li:last-child {
    border-bottom: none;
}

.latest-info ul li a {
    color: #333;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.latest-info ul li a:hover {
    color: #008000; /* 改为绿色 */
}

.latest-info time {
    color: #888;
    font-size: 13px;
}

.latest-info p {
    margin-top: 5px;
}

/* 规章制度 */
.rules ul li {
    padding: 10px 0;
    border-bottom: 1px dashed #eaeaea;
}

.rules ul li:last-child {
    border-bottom: none;
}

.rules ul li a {
    color: #333;
    font-size: 14px;
}

.rules ul li a:hover {
    color: #008000; /* 改为绿色 */
}

/* 页面底部 */
footer {
    background-color: #006400; /* 深绿色 */
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content p {
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .header-top {
        flex-wrap: wrap;
    }
    
    .top-links {
        order: 3;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
    
    .search-box {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
    }
    
    .main-nav > li {
        flex: 1 0 50%;
    }
    
    .news-slider {
        height: 200px;
    }
    
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        margin: 10px 0 0;
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .main-nav > li {
        flex: 1 0 100%;
    }
    
    .news-slider {
        height: 180px;
    }
    
    .news-list ul li {
        flex-direction: column;
    }
    
    .news-list time {
        margin-top: 5px;
        align-self: flex-end;
    }
}